# -*- coding: utf-8 -*-
"""
@author:xuyuntao
@time:2021/6/2/002:9:12
@email:xuyuntao@189.cn
"""
import numpy

def normalize(signal):
    """信号幅度归一化函数，与DMG类内置函数一致"""
    return signal / numpy.sqrt(numpy.mean(numpy.abs(signal) ** 2))